import request from '@/util/request'

// 获取搜藏列表
export function listCollection(index, size) {
  return request({
    url: `/myCollection/list/${index}/${size}`,
    method: 'get',
    baseURL: process.env.VUE_APP_AJS_OTHER
  })
}

// 批量删除收藏商品
export function removeCollection(ids) {
  return request({
    url: `/myCollection/${ids}`,
    method: 'delete',
    baseURL: process.env.VUE_APP_AJS_OTHER
  })
}

// 获取用户收藏商品数量
export function getCollectionCount() {
  return request({
    url: `/myCollection/count`,
    method: 'get',
    baseURL: process.env.VUE_APP_AJS_OTHER
  })
}
